Skip to main content

Software Setup

This page configures the flight controller, the MK15 link, the JetCore companion computer and the Livox Mid-360. Work through it in order. Examples use ArduPilot Copter and Mission Planner. PX4 users can apply the same steps in QGroundControl.

danger

Propellers must be off for this entire page.


1. Flash the Flight Controller​

  1. Unplug the JetCore USB lead from the carrier, then connect your laptop to the Cube Orange+'s micro-USB port. The Cube has a single USB interface, so only one USB host should be connected at a time. You do not need a battery for this.
  2. In Mission Planner, open Setup → Install Firmware. Select Copter and, when asked, choose the CubeOrangePlus board target.
  3. After flashing, reconnect and set the frame:
ParameterValueMeaning
FRAME_CLASS1Quad
FRAME_TYPE1X
  1. Set the board orientation. The Cube is mounted vertically on the front of the chassis, so set AHRS_ORIENTATION to match its mounting. Then tilt the drone by hand and check that the artificial horizon in Mission Planner moves the same way.
  2. Reboot the Cube.

2. Calibrate Sensors​

  1. Accelerometer – Setup → Mandatory Hardware → Accel Calibration. Follow the six-position prompts with the drone resting on a flat surface. Then run Calibrate Level.
  2. Compass – Setup → Mandatory Hardware → Compass. Use the Cube's internal compass. Rotate the drone through all axes until calibration completes, then reboot.
note

The kit does not include a GPS. If you add one, connect it to the MINI CC GPS port and calibrate its compass instead of (or alongside) the internal one.


The MK15 air unit and handheld ground station are shipped paired. Power both up and confirm the link indicator on the handheld before continuing.

RC input (SBUS)​

  1. On the MK15 handheld, map the sticks to channels 1–4 (roll, pitch, throttle, yaw) and a 3-position switch to channel 5 for flight modes.
  2. Mission Planner: Setup → Mandatory Hardware → Radio Calibration. Move every stick and switch to its limits, then click Click when Done.
  3. Check that moving each stick moves the matching bar in the correct direction. Reverse channels on the handheld if needed.

Set the serial port wired to the MK15 air unit (the MINI CC R_UART (radio telemetry) port, normally SERIAL1):

ParameterValue
SERIAL1_PROTOCOL2 (MAVLink 2)
SERIAL1_BAUDMatch the MK15 air unit UART baud rate (for example 57 for 57600)

The handheld can then display telemetry in its ground station app, or forward it to a laptop over the MK15 network.

Flight modes​

Switch positionModeUse
1StabilizeManual, first hover
2AltHoldAltitude held by barometer / rangefinder
3Loiter or GuidedNeeds a position source (GPS or external navigation)

Set FLTMODE_CH = 5 and assign the modes under Setup → Mandatory Hardware → Flight Modes.


4. ESC Calibration & Motor Test​

  1. Set MOT_PWM_TYPE = 0 (standard PWM) for the Emax 30A ESCs.
  2. Follow Setup → Mandatory Hardware → ESC Calibration (all-at-once method). With props off, the ESCs learn the throttle range from the Cube.
  3. Open Setup → Optional Hardware → Motor Test. Spin each motor at about 10% throttle for 2 seconds.
  4. Confirm the motor that spins matches the expected position, and that it turns the right way:
Test buttonExpected motorPositionRotation
AMotor 1Front-rightCCW
BMotor 4Rear-rightCW
CMotor 2Rear-leftCCW
DMotor 3Front-leftCW
  • Wrong motor spins? Swap the ESC signal leads on the MINI CC M1–M4 header.
  • Right motor, wrong direction? Swap any two of its three motor wires on the ESC.

5. Battery Monitor & Failsafes​

ParameterValueNotes
BATT_MONITOR4Analog voltage and current
BATT_CAPACITY10000mAh
BATT_VOLT_MULTCalibrateCompare against a multimeter reading
BATT_AMP_PERVLTCalibrateCompare against a clamp meter or charger mAh
BATT_LOW_VOLT21.03.5 V per cell
BATT_CRT_VOLT20.43.4 V per cell
BATT_FS_LOW_ACT1Land (use 2, RTL, only with a working position source)
BATT_FS_CRT_ACT1Land
FS_THR_ENABLE1RC loss failsafe enabled

Check that the battery voltage shown in Mission Planner matches a multimeter reading within 0.1 V before your first flight.


6. Rangefinder (TFmini-S)​

ParameterValue
RNGFND1_TYPE25 (Benewake TFmini-Plus/TFmini-S over I2C)
RNGFND1_ADDR16 (0x10)
RNGFND1_ORIENT25 (down)
RNGFND1_MIN_CM10
RNGFND1_MAX_CM1200

Reboot, then check Status → rangefinder1 in Mission Planner while lifting the drone off the bench by hand. The distance should change smoothly.

note

On ArduPilot 4.6 and later, the range limits are RNGFND1_MIN and RNGFND1_MAX, in metres (0.1 and 12). If no reading appears, the TFmini-S may still be in its factory UART mode. Switch it to I2C with Benewake's configuration tool.


7. JetCore Companion Computer​

  1. Flash JetPack to the Jetson Xavier NX following the JetCore flashing guide.
  2. Companion link – JetCore talks to the Cube over USB (cable S1 to the carrier's USB port). The Cube's USB port speaks MAVLink by default, so no serial-port parameters need changing. Reconnect the JetCore USB lead once flight controller setup is finished.
  3. On the Jetson, check that the Cube appears as a USB serial device:
ls /dev/serial/by-id/
  1. Bridge MAVLink from the Cube to your applications and to the ground station. See MAVLink Bridge. For example:
mavproxy.py --master=/dev/ttyACM0 --baudrate 115200 \
--out=udp:127.0.0.1:14550 --out=udp:192.168.144.255:14550

Replace /dev/ttyACM0 with the device listed under /dev/serial/by-id/.

Network configuration​

Give the Jetson's Ethernet interface a static address on both the Livox subnet and the SIYI subnet, so it can talk to the LiDAR and to the ground station:

sudo nmcli con add type ethernet ifname eth0 con-name jasper-lan \
ipv4.method manual ipv4.addresses "192.168.1.50/24,192.168.144.50/24"
sudo nmcli con up jasper-lan

192.168.1.50 is the Livox SDK's default host address. If you use a different address, set it as the host IP in the Livox driver configuration. Choose a 192.168.144.x address that is not already used by an MK15 device.


8. Livox Mid-360​

  1. Install Livox-SDK2 and livox_ros_driver2 on the Jetson, following Livox's instructions for your ROS version.
  2. In the driver's MID360_config.json, set:
    • the host IP to 192.168.1.50 (the Jetson address from above)
    • the LiDAR IP to 192.168.1.1XX (from your unit's serial number)
  3. Launch the driver and view the point cloud in RViz. Confirm:
    • the cloud updates at 10 Hz
    • the ground plane appears tilted, matching the front-tilted mount (correct it with the extrinsic parameters in the driver config)
    • no part of the drone's own frame blocks the view

9. Optional: GPS-Denied Navigation​

Jasper is designed to fly without GPS by feeding LiDAR or visual odometry from the Jetson to the Cube. Once your odometry node publishes ODOMETRY or VISION_POSITION_ESTIMATE over MAVLink, set:

ParameterValue
VISO_TYPE1 (MAVLink)
EK3_SRC1_POSXY6 (ExternalNav)
EK3_SRC1_VELXY6 (ExternalNav)
EK3_SRC1_POSZ1 (Barometer) or 2 (Rangefinder)
EK3_SRC1_YAW6 (ExternalNav)

Validate the position estimate on the ground (by carrying the drone around) before flying in Loiter or Guided mode.


Setup Complete​

  • Frame set to Quad-X, accelerometers and compass calibrated
  • RC calibrated, flight modes on channel 5
  • ESCs calibrated; motor order and rotation verified
  • Battery monitor calibrated; failsafes set
  • Rangefinder reading correctly
  • JetCore receiving MAVLink; Livox point cloud visible

Now fit the propellers (Step 11) and continue to Pre-flight & First Flight.